package com.wg.entity.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;


@Data
@AllArgsConstructor
@NoArgsConstructor
public class WgInfoAddDto implements Serializable {
    @NotNull(message = "WG任务名称必填")
    private String name;

    @NotNull(message = "WG日程必填")
    private String schedule;

    @NotNull(message = "WG描述必填")
    private String description;

    @NotNull(message = "创建人必填")
    private Long creatorId;

    @NotNull(message = "WG目录必填")
    private String learnoutcome;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date startTime;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endTime;


}
